import { defineStore } from 'pinia';
import type { IUserState } from './types';
/**
 * 配置文件
 */
export const useUserStore = defineStore('userStore', {
  state: (): IUserState => {
    return {
      userId: null,
      username: "",
      type: "",
      tokenHeaderName: '',
      tokenValue: '',
      otherServerToken: '',
      collapsed: false,
      contentWidth: 0
    };
  },
  getters: {},
  actions: {},
  persist: {
    storage: sessionStorage,
  },
});
